<% var pageLevelJS = { %>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<link rel="stylesheet" href="${plugin}/tool/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script  type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.core.min.js"></script>
<script  type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.excheck.min.js"></script>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"auth"
		,modelName:"账号"
		,modelFlag:"account"
		 ,key:"${sessionId}" 
		}
var aesKey = "${sessionId}"; 
loadCryptJs();
</script> 
<script type="text/javascript" src="${ctx}/static/fw/js/fw-inputTree.js"></script>
<script type="text/javascript" src="${ctx}/static/js/auth/account/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	<input type="hidden" name="id" oldval="${data.id}" value="${data.id}">
	<input type="hidden" name="password" oldval="">
  		 <div class="form-group col-md-5">
		     <label class="required-before col-sm-3 control-label no-padding-right" for="name">用户名:</label>
		     <div class="col-sm-9 inline-height">
		    	 <input type="text" 
		    	  <%if(!isEmpty(data.name)){%>
						 readonly  class="validate[required,maxSize[50]] col-xs-10 readonly" 
				　　   <% }else{ %>
					class="validate[required,maxSize[50]] col-xs-10" 
				   <% }%>
		    	 value="${data.name}" oldval="${data.name}" name="name" placeholder="用户名">
			</div>
		  </div>
 		      <div class="form-group col-md-5">
		     <label class="required-before col-sm-3 control-label no-padding-right" for="name">昵称:</label>
		     <div class="col-sm-9 inline-height">
		   		 <input type="text" value="${data.nickName}" oldval="${data.nickName}" class="validate[required,maxSize[50]] col-xs-10" name="nickName" placeholder="昵称">
		  	 </div>
		  </div>
		  <div class="form-group col-md-5">
			<label class=" col-sm-3 control-label no-padding-right" for="password">密码:</label>
			<div class="col-sm-9 inline-height">
		    	<input type="password" value="" oldval="" targetname="password"  placeholder="密码" class="validate[maxSize[50]] password col-xs-10" />
		 	 </div>
		  </div>
		  <div class="form-group  col-md-5">
		     <label for="email"class=" col-sm-3 control-label no-padding-right">邮箱:</label>
		      <div class="col-sm-9 inline-height">
			    <div class="parentCls" style="display: inline;">
			        <input type="text" value="${data.email}" oldval="${data.email}"  w="100%" class="validate[custom[email],maxSize[50]] inputElem col-xs-10" name="email" placeholder="邮箱">
			     </div>
		     </div>
		  </div> 
		  <div class="form-group col-md-5">
		     <label for="name" class=" col-sm-3 control-label no-padding-right" id="citySelLabel">组织机构:</label>
		     <div class="col-sm-9 inline-height">
		         <div style="width: 100%" >
				     <input type="hidden" class="validate[maxSize[50]] treeValue" value="${data.orgId}" oldval="${data.orgId}" name="orgId" placeholder="组织机构">
				     <input type="text" treehide="true" left="15" value="${data.orgName}" class="validate[maxSize[50]]  treeSel col-xs-10" readonly="readonly" placeholder="组织机构">
					 <div  class="menuContent" style="display:none;position:absolute;z-index:50000;left: 15px">
						<ul id="treeDemo" class="ztree search-ztree" style="margin-top:0; width:160px;max-height:200px">
						</ul>
					</div>
				</div>
			  </div>
		  </div>
		  <%if(has(sysFlags) && sysFlags.~size>1){ %>
			   <%if(!isEmpty(data.id)){%>
				  <div class="form-group col-md-5">
				     <label for="phone" class=" col-sm-3 control-label no-padding-right">所属系统:</label>
				     <div class="col-sm-9 inline-height">
					    <input type="text" value="${data.instance.nameStr}" readonly="readonly" oldval="${data.instance.nameStr}" class="readonly validate[maxSize[50]] col-xs-10" name="instanceId" placeholder="所属系统">
					  </div>
				  </div>
			　　   <% }else{ %>
					 <div class="form-group col-md-5">
					     <label class="required-before col-sm-3 control-label no-padding-right" for="instanceId">所属系统:</label>
						 <div class="col-sm-9 inline-height ">
						   <select placeholder="所属系统" name="instanceId" oldval="${data.instanceId}" class="col-xs-10">
								<option value="">--所有系统--</option>
								<% for(res in sysFlags!){ %>
								  <option value="${res.id}"
								   <%if(data.instanceId==res.id){%>
									  selected="selected"
									 <%}%>
								  >${res.nameStr}</option>
							　　   <% } %>
							</select>
					  	 </div>
					  </div>
			   <% }%>
		  <%} %>
		  <div class="form-group col-md-5">
		     <label for="phone" class=" col-sm-3 control-label no-padding-right">联系电话:</label>
		     <div class="col-sm-9 inline-height">
			    <input type="text" value="${data.phone}" oldval="${data.phone}" class="validate[maxSize[50]] col-xs-10" name="phone" placeholder="联系电话" >
			  </div>
		  </div>
		  <div class="form-group col-md-5">
		     <label for="remark" class=" col-sm-3 control-label no-padding-right">备注:</label>
		     <div class="col-sm-9 inline-height">
			    <input type="text"  value="${data.remark}" oldval="${data.remark}" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
			  </div>
		  </div>
<%} %>